package com.cwm.test.single.hungry;

/**
 * 优点:执行效率高，性能高，没有任何的锁
 * 缺点:某些情况下，可能会造成内存浪费
 */
public class Hungrysingleton {

    private static final Hungrysingleton hungrysingleton = new Hungrysingleton();

    private Hungrysingleton() {
    }

    public static Hungrysingleton getInstance() {
        return hungrysingleton;
    }
}